.mahsa-page {
    --mahsa-navy: #143862;
    --mahsa-orange: #da7900;
    --mahsa-ink: #162033;
    --mahsa-muted: #5f6b7a;
    --mahsa-soft: #f6f8fb;
    --mahsa-line: #e6ebf1;
    --mahsa-white: #ffffff;
    --mahsa-shadow: 0 18px 45px rgba(20, 56, 98, 0.11);
    color: var(--mahsa-ink);
    background: #ffffff;
    overflow: hidden;
}

.mahsa-page *,
.mahsa-page *::before,
.mahsa-page *::after {
    box-sizing: border-box;
}

.mahsa-container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.mahsa-hero {
    position: relative;
    padding: clamp(72px, 9vw, 118px) 0 clamp(48px, 6vw, 82px);
    background:
        radial-gradient(circle at 15% 15%, rgba(218, 121, 0, 0.1), transparent 28%),
        radial-gradient(circle at 85% 8%, rgba(20, 56, 98, 0.1), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.mahsa-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image: radial-gradient(circle, rgba(20, 56, 98, 0.26) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
}

.mahsa-hero__grid,
.mahsa-split,
.mahsa-video-grid,
.mahsa-support {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.mahsa-eyebrow,
.mahsa-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 14px;
    color: var(--mahsa-orange);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0;
}

.mahsa-eyebrow::before,
.mahsa-section-kicker::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
}

.mahsa-hero h1,
.mahsa-section h2,
.mahsa-final-card h2 {
    margin: 0;
    color: var(--mahsa-navy);
    font-weight: 900;
    line-height: 1.22;
    letter-spacing: 0;
}

.mahsa-hero h1 {
    max-width: 760px;
    font-size: clamp(2rem, 4.7vw, 4.4rem);
}

.mahsa-hero h1 span {
    display: block;
    color: var(--mahsa-orange);
    font-size: 0.56em;
    margin-top: 10px;
    direction: ltr;
    unicode-bidi: isolate;
}

.mahsa-hero p,
.mahsa-section p,
.mahsa-final-card p {
    color: var(--mahsa-muted);
    font-size: clamp(1rem, 1.25vw, 1.12rem);
    line-height: 1.95;
}

.mahsa-hero p {
    max-width: 760px;
    margin: 22px 0 0;
}

.mahsa-trust-badge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    width: fit-content;
    margin-top: 24px;
    padding: 12px 16px;
    border: 1px solid rgba(20, 56, 98, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 12px 30px rgba(20, 56, 98, 0.08);
    backdrop-filter: blur(10px);
}

.mahsa-trust-badge strong {
    color: var(--mahsa-navy);
    direction: ltr;
    unicode-bidi: isolate;
}

.mahsa-trust-badge span {
    color: var(--mahsa-muted);
    font-size: 0.92rem;
}

.mahsa-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.mahsa-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.mahsa-btn:hover {
    transform: translateY(-2px);
}

.mahsa-btn--primary {
    color: #fff;
    background: var(--mahsa-orange);
    box-shadow: 0 12px 24px rgba(218, 121, 0, 0.22);
}

.mahsa-btn--outline {
    color: var(--mahsa-navy);
    background: #fff;
    border-color: rgba(20, 56, 98, 0.18);
}

.mahsa-btn--outline:hover {
    box-shadow: 0 12px 26px rgba(20, 56, 98, 0.11);
}

.mahsa-hero__visual {
    display: grid;
    gap: 18px;
}

.mahsa-logo-card,
.mahsa-media-card,
.mahsa-video-link,
.mahsa-final-card {
    border: 1px solid rgba(20, 56, 98, 0.1);
    border-radius: 10px;
    background: var(--mahsa-white);
    box-shadow: var(--mahsa-shadow);
}

.mahsa-logo-card {
    padding: clamp(26px, 4vw, 48px);
    min-height: 330px;
    display: grid;
    place-items: center;
}

.mahsa-logo-card img {
    width: min(100%, 360px);
    height: auto;
    object-fit: contain;
}

.mahsa-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mahsa-hero__stats div,
.mahsa-info-grid article,
.mahsa-rankings article,
.mahsa-card,
.mahsa-fees-note,
.mahsa-support-steps article,
.mahsa-related a {
    border: 1px solid rgba(20, 56, 98, 0.1);
    border-radius: 8px;
    background: #fff;
}

.mahsa-hero__stats div {
    padding: 16px 12px;
    text-align: center;
}

.mahsa-hero__stats strong {
    display: block;
    color: var(--mahsa-navy);
    font-size: 1.08rem;
}

.mahsa-hero__stats span {
    display: block;
    margin-top: 4px;
    color: var(--mahsa-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.mahsa-section {
    padding: clamp(56px, 7vw, 92px) 0;
}

.mahsa-section--soft {
    background: var(--mahsa-soft);
}

.mahsa-section--navy {
    background: linear-gradient(135deg, #102f55 0%, #143862 100%);
    color: #fff;
}

.mahsa-section--navy h2,
.mahsa-section--navy p,
.mahsa-section--navy .mahsa-section-kicker {
    color: #fff;
}

.mahsa-section--navy p {
    opacity: 0.82;
}

.mahsa-section-head {
    max-width: 820px;
    margin-bottom: clamp(24px, 4vw, 38px);
}

.mahsa-section-head h2,
.mahsa-section h2,
.mahsa-final-card h2 {
    font-size: clamp(1.75rem, 3vw, 2.8rem);
}

.mahsa-media-card {
    overflow: hidden;
    margin: 0;
}

.mahsa-media-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.mahsa-media-card figcaption {
    padding: 12px 16px;
    color: var(--mahsa-muted);
    font-size: 0.9rem;
}

.mahsa-info-grid,
.mahsa-rankings,
.mahsa-card-grid,
.mahsa-faculty-grid,
.mahsa-support-steps,
.mahsa-related {
    display: grid;
    gap: 14px;
}

.mahsa-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mahsa-info-grid article,
.mahsa-card,
.mahsa-fees-note {
    padding: clamp(18px, 2.4vw, 26px);
}

.mahsa-info-grid span {
    display: block;
    color: var(--mahsa-muted);
    font-size: 0.88rem;
    margin-bottom: 8px;
}

.mahsa-info-grid strong {
    color: var(--mahsa-navy);
    line-height: 1.65;
}

.mahsa-video-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
}

.mahsa-video-link {
    position: relative;
    min-height: 236px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background:
        linear-gradient(180deg, rgba(20, 56, 98, 0.2), rgba(20, 56, 98, 0.78)),
        url("../img/mahsa/campus.aff585b157c7.webp") center/cover;
}

.mahsa-video-link::before {
    content: "";
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.mahsa-video-link::after {
    content: "";
    position: absolute;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-right: 0;
    border-left: 20px solid var(--mahsa-orange);
    transform: translateX(3px);
}

.mahsa-video-link span {
    position: absolute;
    bottom: 18px;
    font-weight: 900;
}

.mahsa-rankings {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mahsa-rankings article {
    padding: 24px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.mahsa-rankings strong {
    display: block;
    color: #fff;
    font-size: clamp(1.55rem, 2.7vw, 2.45rem);
    line-height: 1.2;
}

.mahsa-rankings span {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.mahsa-card-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mahsa-card-grid--3,
.mahsa-faculty-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mahsa-card h3,
.mahsa-fees-note h3,
.mahsa-support-steps h3 {
    margin: 0 0 10px;
    color: var(--mahsa-navy);
    font-size: 1.08rem;
    line-height: 1.55;
}

.mahsa-card p,
.mahsa-fees-note li,
.mahsa-support-steps p {
    margin: 0;
    color: var(--mahsa-muted);
    line-height: 1.85;
}

.mahsa-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(20, 56, 98, 0.1);
}

.mahsa-card {
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.mahsa-register-banner {
    padding: clamp(34px, 5vw, 54px);
    border-radius: 10px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(20, 56, 98, 0.96), rgba(20, 56, 98, 0.88)),
        radial-gradient(circle at 10% 0%, rgba(218, 121, 0, 0.24), transparent 28%);
    box-shadow: var(--mahsa-shadow);
}

.mahsa-register-banner h2 {
    color: #fff;
}

.mahsa-register-banner p {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.82);
}

.mahsa-accordion {
    display: grid;
    gap: 12px;
}

.mahsa-accordion details,
.mahsa-faq details {
    border: 1px solid var(--mahsa-line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.mahsa-accordion summary,
.mahsa-faq summary {
    cursor: pointer;
    padding: 18px 20px;
    color: var(--mahsa-navy);
    font-weight: 900;
    list-style: none;
}

.mahsa-accordion summary::-webkit-details-marker,
.mahsa-faq summary::-webkit-details-marker {
    display: none;
}

.mahsa-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-top: 1px solid var(--mahsa-line);
}

.mahsa-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.mahsa-table th,
.mahsa-table td {
    padding: 14px 16px;
    text-align: right;
    border-bottom: 1px solid var(--mahsa-line);
    vertical-align: top;
    line-height: 1.75;
}

.mahsa-table th {
    color: var(--mahsa-navy);
    background: #f7f9fc;
    font-weight: 900;
}

.mahsa-table td {
    color: #344154;
}

.mahsa-fees-note ul {
    padding: 0;
    margin: 14px 0 0;
    list-style: none;
}

.mahsa-fees-note li + li {
    margin-top: 10px;
}

.mahsa-fees-note li::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-inline-end: 10px;
    border-radius: 50%;
    background: var(--mahsa-orange);
}

.mahsa-support {
    align-items: start;
}

.mahsa-support-steps {
    grid-template-columns: 1fr;
}

.mahsa-support-steps article span {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    border-radius: 50%;
    color: #fff;
    background: var(--mahsa-orange);
    font-weight: 900;
}

.mahsa-faq {
    display: grid;
    gap: 12px;
}

.mahsa-faq p {
    margin: 0;
    padding: 0 20px 20px;
}

.mahsa-final-cta {
    padding: clamp(56px, 7vw, 94px) 0;
    background: #fff;
}

.mahsa-final-card {
    padding: clamp(30px, 5vw, 58px);
    text-align: center;
    background:
        radial-gradient(circle at 20% 0%, rgba(218, 121, 0, 0.1), transparent 28%),
        #ffffff;
}

.mahsa-final-card .mahsa-section-kicker,
.mahsa-final-card .mahsa-actions {
    margin-inline: auto;
}

.mahsa-final-card p {
    max-width: 760px;
    margin: 18px auto 0;
}

.mahsa-related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.mahsa-related a {
    display: block;
    padding: 16px;
    color: var(--mahsa-navy);
    text-align: center;
    text-decoration: none;
    font-weight: 800;
}

.mahsa-related a:hover {
    color: var(--mahsa-orange);
}

@media (max-width: 980px) {
    .mahsa-hero__grid,
    .mahsa-split,
    .mahsa-video-grid,
    .mahsa-support {
        grid-template-columns: 1fr;
    }

    .mahsa-info-grid,
    .mahsa-rankings,
    .mahsa-card-grid--2,
    .mahsa-card-grid--3,
    .mahsa-faculty-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .mahsa-container {
        width: min(100% - 22px, 1180px);
    }

    .mahsa-hero {
        padding-top: 52px;
    }

    .mahsa-actions,
    .mahsa-final-card .mahsa-actions {
        width: 100%;
    }

    .mahsa-btn {
        width: 100%;
    }

    .mahsa-hero__stats,
    .mahsa-info-grid,
    .mahsa-rankings,
    .mahsa-card-grid--2,
    .mahsa-card-grid--3,
    .mahsa-faculty-grid,
    .mahsa-related {
        grid-template-columns: 1fr;
    }

    .mahsa-logo-card {
        min-height: 240px;
    }

    .mahsa-register-banner,
    .mahsa-final-card {
        padding: 24px 18px;
    }

    .mahsa-table th,
    .mahsa-table td {
        padding: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mahsa-btn,
    .mahsa-card {
        transition: none;
    }

    .mahsa-btn:hover,
    .mahsa-card:hover {
        transform: none;
    }
}
